/*
 * @Author       : xiangmin
 * @File         : 给表单赋值
 * @Date         : 2024-06-26 10:13:09
 * @LastEditors  : xiangmin
 * @LastEditTime : 2024-06-26 11:33:46
 */

export default function (model: Record<string, any>, data: Record<string, any>) {
	for (const key in model) {
		if (Object.prototype.hasOwnProperty.call(data, key)) {
			model[key] = data[key]
		}
	}
}
